package com.kaifamiao.pojo;

import java.util.List;

public class Department {
    private Integer departid;

    private String departname;

    private String departintro;

    private List<Doctor> doctorsList;

    private List<Oppointment> oppointmentList;

    public List<Oppointment> getOppointmentList() {
        return oppointmentList;
    }

    public void setOppointmentList(List<Oppointment> oppointmentList) {
        this.oppointmentList = oppointmentList;
    }

    public List<Doctor> getDoctors() {
        return doctorsList;
    }

    public void setDoctors(List<Doctor> doctors) {
        this.doctorsList = doctors;
    }

    public Integer getDepartid() {
        return departid;
    }

    public void setDepartid(Integer departid) {
        this.departid = departid;
    }

    public String getDepartname() {
        return departname;
    }

    public void setDepartname(String departname) {
        this.departname = departname == null ? null : departname.trim();
    }

    public String getDepartintro() {
        return departintro;
    }

    public void setDepartintro(String departintro) {
        this.departintro = departintro == null ? null : departintro.trim();
    }

    @Override
    public String toString() {
        return "Department{" +
                "departid=" + departid +
                ", departname='" + departname + '\'' +
                ", departintro='" + departintro + '\'' +
                ", doctorsList=" + doctorsList +
                '}';
    }
}